package com.xwaf.platform.system.api.exception;

import com.google.common.base.Joiner;
import com.xwaf.platform.common.api.exception.BaseException;

/**
 * 
 * <p>
 * 自定义Exception
 * <p>
 * 
 * @author 李聪 <br>
 * @email xwaf_love@yeah.net <br>
 * @since JDK 1.8<br>
 * @date 2019年12月30日 上午8:54:24 <br>
 * @see 无<br>
 *      Copyright (c) 2019, xwaf_love@yeah.net All Rights Reserved.<br>
 */
public class ConcurrentException extends BaseException {
	private static final long serialVersionUID = -1644359954949978011L;

	private String tableName;
	private String db;
	private String operate;

	public ConcurrentException(String tableName, String db, String operate, String errorCode) {
		super();
		this.tableName = tableName;
		this.db = db;
		this.operate = operate;
		this.errorCode = errorCode;
	}

	@Override
	public String getMessage() {
		return Joiner.on(":").join(db, tableName, operate, "current exception");
	}
}
